package com.ruoyi.training.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 培训预约记录对象 training_reservation
 * 
 * @author WorrilessGo
 * @date 2025-09-24
 */
public class TrainingReservation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 培训预约表ID（主键） */
    private String trainingReservationId;

    /** 培训计划表ID（外键，关联training_schedule表） */
    @Excel(name = "培训计划表ID", readConverterExp = "外=键，关联training_schedule表")
    private String trainingScheduleId;

    /** 用户ID（关联用户表，预约人） */
    @Excel(name = "用户ID", readConverterExp = "关=联用户表，预约人")
    private String userId;

    public void setTrainingReservationId(String trainingReservationId) 
    {
        this.trainingReservationId = trainingReservationId;
    }

    public String getTrainingReservationId() 
    {
        return trainingReservationId;
    }

    public void setTrainingScheduleId(String trainingScheduleId) 
    {
        this.trainingScheduleId = trainingScheduleId;
    }

    public String getTrainingScheduleId() 
    {
        return trainingScheduleId;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("trainingReservationId", getTrainingReservationId())
            .append("trainingScheduleId", getTrainingScheduleId())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
